home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / SATAN11.ZIP / REPENT < prev    next >
Text File  |  1995-03-25  |  1KB  |  41 lines

  1. :
  2. #
  3. # Change SATAN to SANTA.  Do this *before* you type make...
  4. #
  5. # version 1, Fri Mar 24  2:25:29 1995, last mod by zen
  6. #
  7.  
  8. # if we see an md5 file, we'll assume they have already done a make...
  9. if test -f bin/md5 ; then
  10.     echo Run this before doing a \"make\", or run \"make clean\" and then run it...
  11.     exit 1
  12.     fi
  13.  
  14. #
  15. # Change the file names from "*satan*" ==> "*santa*"
  16. echo Finding all the file names
  17. find . \! -name "satan*.gif" -print | while read old_name
  18.     do
  19.     new_name=`echo $old_name | sed 's/satan/santa/'`
  20.     if test $new_name != $old_name ; then
  21.         mv $old_name $new_name
  22.         fi
  23.     done
  24.  
  25. #
  26. # Nuke the inline and acronym stuff in everything but the binaries...
  27. echo Now changing all "SATAN" occurances to "SANTA"... please wait...
  28. find . -type f \! -name "*.gif" -print |
  29.     grep -v see_the_light.pl | xargs \
  30.     perl -pi -e 's/SATAN/SANTA/g; s/satan/santa/g; s/Security Administrator Tool for Analyzing Networks/Security Analysis Network Tool for Administrators/'
  31.  
  32. echo linking santa...
  33. ln html/images/santa.gif html/images/santa-almost-full.gif
  34. ln html/images/santa.gif html/images/santa-full.gif
  35.  
  36. #
  37. # one last switch...
  38. perl -pi -e 's/"SANTA"/"SATAN"/; s/you can run the/but you shouldnt have run the/' html/name.html
  39.  
  40. echo Done!
  41.